<?php get_header() ?>
 
		<div id="content" class="grid_8 alpha">

			<div id="post-0" class="post error404 not-found">
				<h2 class="entry-title">Oops, that page appears to be missing.</h2>
				<div class="entry-content">
					<p class="blame">Apologies, but we were unable to find what you were looking for. It's probably our fault, but let's not play the blame game! Maybe a search will help.</p>
				</div>

				<form id="searchform-404" class="blog-search" method="get" action="<?php bloginfo('home') ?>">
					<div>
						<input id="s-404" name="s" class="text" type="text" value="<?php the_search_query() ?>" size="40" />
						<input class="button" type="submit" value="<?php _e( 'Find', 'sandbox' ) ?>" />
					</div>
				</form>	

			</div><!-- .post -->

            <div class="latest grid_5 alpha">
                <h4>Latest posts</h4>
            <?php 
                // show front page content. determine which category is show on front page. defaults to all. 
                $category_to_use = get_option('cp_front_category');
                if (is_numeric($category_to_use) && $category_to_use > 0) {
                    $four04Posts = new WP_Query('posts_per_page=10&cat='.$category_to_use);
                } else {
                    $four04Posts = new WP_Query('posts_per_page=10');
                }
            ?>
            <?php while ($four04Posts->have_posts()) : $four04Posts->the_post(); ?>
                <?php calpress_loop_content(true, 140, 96, false, true, false, true, 10); ?>
            <?php endwhile; ?>
            </div>
            
            <div class="archives grid_3 omega">
				<h4>Archives by month</h4>
				<ul class="xoxo">
				    <?php wp_get_archives('type=monthly&show_post_count=1') ?>
				</ul>
				
				<h4>Archives by category</h4>
                <ul class="xoxo">
				    <?php wp_list_categories('optioncount=1&title_li=&show_count=1') ?> 
				</ul>
            </div>
		</div><!-- #content -->
        <?php get_sidebar() ?>

<?php get_footer() ?>